<!-- title: Scheduling Tool -->





<div class="dev-header">

<a class="btn btn-default btn-sm" disabled style="margin-bottom: 10px;">
	Version 1.0 beta</a>


	<a class="btn btn-default btn-sm" href="https://github.com/frappe/schools/tree/develop/schools/academics/doctype/scheduling_tool"
		target="_blank" style="margin-left: 10px; margin-bottom: 10px;"><i class="octicon octicon-mark-github"></i> Source</a>

</div>

<span class="label label-info">Single</span>






<h3>Fields</h3>

<table class="table table-bordered">
    <thead>
        <tr>
            <th style="width: 5%">Sr</th>
            <th style="width: 25%">Fieldname</th>
            <th style="width: 20%">Type</th>
            <th style="width: 25%">Label</th>
            <th style="width: 25%">Options</th>
        </tr>
    </thead>
    <tbody>
        
        <tr >
            <td>1</td>
            <td class="danger" title="Mandatory"><code>student_group</code></td>
            <td >
                Link</td>
            <td >
                Student Group
                
            </td>
            <td>
                
                


<a href="https://frappe.github.io/schools/current/models/academics/student_group">Student Group</a>


                
            </td>
        </tr>
        
        <tr >
            <td>2</td>
            <td ><code>academic_year</code></td>
            <td >
                Link</td>
            <td >
                Academic Year
                
            </td>
            <td>
                
                


<a href="https://frappe.github.io/schools/current/models/academics/academic_year">Academic Year</a>


                
            </td>
        </tr>
        
        <tr >
            <td>3</td>
            <td ><code>academic_term</code></td>
            <td >
                Link</td>
            <td >
                Academic Term
                
            </td>
            <td>
                
                


<a href="https://frappe.github.io/schools/current/models/academics/academic_term">Academic Term</a>


                
            </td>
        </tr>
        
        <tr >
            <td>4</td>
            <td ><code>column_break_3</code></td>
            <td class="info">
                Column Break</td>
            <td >
                
                
            </td>
            <td></td>
        </tr>
        
        <tr >
            <td>5</td>
            <td ><code>program</code></td>
            <td >
                Link</td>
            <td >
                Program
                
            </td>
            <td>
                
                


<a href="https://frappe.github.io/schools/current/models/academics/program">Program</a>


                
            </td>
        </tr>
        
        <tr >
            <td>6</td>
            <td class="danger" title="Mandatory"><code>course</code></td>
            <td >
                Link</td>
            <td >
                Course
                
            </td>
            <td>
                
                


<a href="https://frappe.github.io/schools/current/models/academics/course">Course</a>


                
            </td>
        </tr>
        
        <tr class="info">
            <td>7</td>
            <td ><code>section_break_6</code></td>
            <td >
                Section Break</td>
            <td >
                
                
            </td>
            <td></td>
        </tr>
        
        <tr >
            <td>8</td>
            <td class="danger" title="Mandatory"><code>room</code></td>
            <td >
                Link</td>
            <td >
                Room
                
            </td>
            <td>
                
                


<a href="https://frappe.github.io/schools/current/models/academics/room">Room</a>


                
            </td>
        </tr>
        
        <tr >
            <td>9</td>
            <td ><code>column_break_9</code></td>
            <td class="info">
                Column Break</td>
            <td >
                
                
            </td>
            <td></td>
        </tr>
        
        <tr >
            <td>10</td>
            <td class="danger" title="Mandatory"><code>instructor</code></td>
            <td >
                Link</td>
            <td >
                Instructor
                
            </td>
            <td>
                
                


<a href="https://frappe.github.io/schools/current/models/academics/instructor">Instructor</a>


                
            </td>
        </tr>
        
        <tr >
            <td>11</td>
            <td ><code>instructor_name</code></td>
            <td >
                Read Only</td>
            <td >
                Instructor Name
                
            </td>
            <td>
                <pre>instructor.instructor_name</pre>
            </td>
        </tr>
        
        <tr class="info">
            <td>12</td>
            <td ><code>section_break_7</code></td>
            <td >
                Section Break</td>
            <td >
                
                
            </td>
            <td></td>
        </tr>
        
        <tr >
            <td>13</td>
            <td class="danger" title="Mandatory"><code>from_time</code></td>
            <td >
                Time</td>
            <td >
                From Time
                
            </td>
            <td></td>
        </tr>
        
        <tr >
            <td>14</td>
            <td class="danger" title="Mandatory"><code>course_start_date</code></td>
            <td >
                Date</td>
            <td >
                Course Start Date
                
            </td>
            <td></td>
        </tr>
        
        <tr >
            <td>15</td>
            <td class="danger" title="Mandatory"><code>day</code></td>
            <td >
                Select</td>
            <td >
                Day
                
            </td>
            <td>
                <pre>
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Sunday</pre>
            </td>
        </tr>
        
        <tr >
            <td>16</td>
            <td ><code>rechedule</code></td>
            <td >
                Check</td>
            <td >
                Rechedule
                
            </td>
            <td></td>
        </tr>
        
        <tr >
            <td>17</td>
            <td ><code>column_break_15</code></td>
            <td class="info">
                Column Break</td>
            <td >
                
                
            </td>
            <td></td>
        </tr>
        
        <tr >
            <td>18</td>
            <td class="danger" title="Mandatory"><code>to_time</code></td>
            <td >
                Time</td>
            <td >
                To TIme
                
            </td>
            <td></td>
        </tr>
        
        <tr >
            <td>19</td>
            <td class="danger" title="Mandatory"><code>course_end_date</code></td>
            <td >
                Date</td>
            <td >
                Course End Date
                
            </td>
            <td></td>
        </tr>
        
    </tbody>
</table>


    <hr>
    <h3>Controller</h3>
    <h4>schools.academics.doctype.scheduling_tool.scheduling_tool</h4>

    



	
        
	<h3 style="font-weight: normal;">Class <b>SchedulingTool</b></h3>
    
    <p style="padding-left: 30px;"><i>Inherits from frappe.model.document.Document</i></h4>
    
    <div class="docs-attr-desc"><p></p>
</div>
    <div style="padding-left: 30px;">
        
        
    
    
	<p class="docs-attr-name">
        <a name="delete_course_schedule" href="#delete_course_schedule" class="text-muted small">
            <i class="icon-link small" style="color: #ccc;"></i></a>
		<b>delete_course_schedule</b>
        <i class="text-muted">(self, rescheduled, reschedule_errors)</i>
    </p>
	<div class="docs-attr-desc"><p>Delete all course schedule within the Date range and specified filters</p>
</div>
	<br>

        
        
    
    
	<p class="docs-attr-name">
        <a name="make_course_schedule" href="#make_course_schedule" class="text-muted small">
            <i class="icon-link small" style="color: #ccc;"></i></a>
		<b>make_course_schedule</b>
        <i class="text-muted">(self, date)</i>
    </p>
	<div class="docs-attr-desc"><p>Makes a new Course Schedule.</p>

<p><strong>Parameters:</strong></p>

<ul>
<li><strong><code>date</code></strong> -  Date on which Course Schedule will be created.</li>
</ul>
</div>
	<br>

        
        
    
    
	<p class="docs-attr-name">
        <a name="schedule_course" href="#schedule_course" class="text-muted small">
            <i class="icon-link small" style="color: #ccc;"></i></a>
		<b>schedule_course</b>
        <i class="text-muted">(self)</i>
    </p>
	<div class="docs-attr-desc"><p>Creates course schedules as per specified parametes</p>
</div>
	<br>

        
        
    
    
	<p class="docs-attr-name">
        <a name="validate_date" href="#validate_date" class="text-muted small">
            <i class="icon-link small" style="color: #ccc;"></i></a>
		<b>validate_date</b>
        <i class="text-muted">(self)</i>
    </p>
	<div class="docs-attr-desc"><p>Validates if Course Start Date is greater than Course End Date</p>
</div>
	<br>

        
        
    
    
	<p class="docs-attr-name">
        <a name="validate_mandatory" href="#validate_mandatory" class="text-muted small">
            <i class="icon-link small" style="color: #ccc;"></i></a>
		<b>validate_mandatory</b>
        <i class="text-muted">(self)</i>
    </p>
	<div class="docs-attr-desc"><p>Validates all mandatory fields</p>
</div>
	<br>

        
    </div>
    <hr>

	


    
    


<!-- autodoc -->
<!-- jinja -->
<!-- static -->